<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>咖啡</title>
    <link rel="stylesheet" href="../font/iconfont.css">
    <link rel="stylesheet" href="../css/reset.css">
    <link rel="stylesheet" href="../css/public.css">
    <link rel="stylesheet" href="../css/404.css">
    <style>
        html,body{
            height: 100%;
            width: 100%;
        }
        h1,h2{
            font-size: 50px;
            color: #fff;
        }
        img{
            position: absolute;
            z-index: -1;
            height: 100%;
            width: 100%;
        }
        a{
            font-size: 18px;
            color: #ccc;
            position: relative;
            bottom: -100px;
        }
    </style>
</head>
<body id="bd">
    <img src="../images/bg-3.jpg" alt="">
    <div>
        <h1>注册成功！</h1>
        <h2 id="h2">5秒后返回首页</h2>
        <a href="../index.html">如没有自动返回首页，请点击返回首页</a>
    </div>
    <script>
        let num=5;
        setInterval(()=>{
            num--;
            num==0&&(open("../index.html"));
            num>=0&&(h2.innerHTML=`${num}秒后返回首页`);
        },1000)
    </script>
</body>
</html>